package io.renren.modules.user.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.renren.modules.user.entity.UserinfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2022-07-21 13:14:29
 */
@Mapper
public interface UserinfoDao extends BaseMapper<UserinfoEntity> {
// 把方法的返回值改为分页(Page)类
    IPage<UserinfoEntity> selectByUser(String username,Page page);
    List<UserinfoEntity> listUserInfo();
    UserinfoEntity selectUserById(Integer userNo);

    int insertUser(UserinfoEntity userinfoEntity);

}
